package com.lefeng.cockpit.datax.dao;

import com.lefeng.cockpit.common.bean.po.job.JobLogPO;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface JobLogDao {

    void save(JobLogPO jobLogPO);

    void updateTriggerInfo(JobLogPO jobLogPO);

    int updateProcessId(Integer logId, String processId);

    JobLogPO load(Integer logId);

    void updateHandleInfo(JobLogPO log);

    Map<String, Object> findLogReport(Date todayFrom, Date todayTo);

    List<Long> findClearLogIds(int i, int i1, Date clearBeforeTime, int i2, int i3);

    void clearLog(List<Long> logIds);
}
